/*
 * @Description:
 * @Version: 1.0
 * @Autor: jiajun wu
 * @Date: 2021-08-11 22:22:47
 * @LastEditors: jiajun wu
 * @LastEditTime: 2021-08-11 22:32:35
 */
use mini_redis::{client, Result};

#[tokio::main]
pub async fn main() -> Result<()> {
    let mut click = client::connect("127.0.0.1:6379").await?;
    click.set("hello", "world".into()).await?;
    let result = click.get("hello").await?;

    println!("{:?}", result);
    Ok(())
}
